package com.jyhz.admin.verifyCode;

import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author: 谢君臣
 * @create: 2020-08-22 17:02
 * @founction: 验证码
 */
@Component
public class VerificationCode implements Serializable{
    private String username;
    private String code;
    private Long timestamp;

    public VerificationCode() {
    }

    public VerificationCode(String username, String code, Long timestamp) {
        this.username = username;
        this.code = code;
        this.timestamp = timestamp;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }
}
